﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
   

    public class A_DeleteFormat : A_Action
    {
        public A_DeleteFormat()
        {
            base.HotKey = Keys.Control | Keys.Delete;
        }

        public override string ActionName()
        {
            return "deleteformat";
        }

        public override bool Execute()
        {
            base.myOwnerDocument._DeleteFormat();
            return true;
        }

        public override bool isEnable()
        {
            if (base.myOwnerDocument.CanModify())
            {
                return base.myOwnerDocument.Content.HasSelected();
            }
            return base.isEnable();
        }
    }
}

